home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / SCScan.z / SCScan
Text File  |  1998-10-30  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSCCCCSSSSccccaaaannnn((((3333))))                        IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                         SSSSCCCCSSSSccccaaaannnn((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SCScan, SCScanFD - start scanning from a scanning device.
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccaaaannnnnnnneeeerrrr....hhhh>>>>
  14.  
  15.      iiiinnnntttt SSSSCCCCSSSSccccaaaannnn((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss))));;;;
  16.  
  17.      iiiinnnntttt SSSSCCCCSSSSccccaaaannnnFFFFDDDD((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss,,,, iiiinnnntttt ffffdddd))));;;;
  18.  
  19. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.      _S_C_S_c_a_n tells the scanner driver to start scanning.  _s specifies a
  21.      connection to a scanner driver established by a call to _S_C_O_p_e_n,
  22.      _S_C_O_p_e_n_F_i_l_e, or _S_C_O_p_e_n_S_c_r_e_e_n.  The scan data is then retrieved by calling
  23.      _S_C_G_e_t_S_c_a_n_L_i_n_e(3) or _S_C_G_e_t_S_c_a_n_F_D(3).
  24.  
  25.      _S_C_S_c_a_n_F_D tells the scanner driver to start scanning, with the scan data
  26.      being written directly to _f_d.  _l_i_b_s_c_a_n will pass the file descriptor to
  27.      the scanner driver, and the scanner driver will write the scan data
  28.      directly to the file descriptor.
  29.  
  30.      Before calling either of these functions, _S_C_S_e_t_u_p(3) and _S_C_G_e_t_S_c_a_n_S_i_z_e(3)
  31.      should be called.
  32.  
  33. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  34.      _S_C_S_c_a_n and _S_C_S_c_a_n_F_D return 0 if successful.  If an error occurs, -1 is
  35.      returned and _S_C_e_r_r_n_o is set to indicate the reason for failure.
  36.  
  37. EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
  38.      _S_C_S_c_a_n and _S_C_S_c_a_n_F_D will fail under the following circumstances.
  39.  
  40.      SCECOMM                  Error communicating with scanner driver
  41.  
  42.      SCEDEV                   Scanner driver error
  43.  
  44.      SCEDRVMSG                Driver specific error.  _S_C_E_r_r_o_r_S_t_r_i_n_g(3) will
  45.                               return a custom message supplied by the scanner
  46.                               driver
  47.  
  48. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  49.      _l_i_b_s_c_a_n(3), _S_C_O_p_e_n(3), _S_C_S_e_t_u_p(3), _S_C_G_e_t_S_c_a_n_S_i_z_e(3).
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.